"review":[<?php $nb = count($reviews); $i = 0; foreach ($reviews as $id => $review): ++$i ?>
{<?php $nb1 = count($review); $j = 0; foreach ($review as $key => $value): ++$j ?>"<?php echo $key ?>": <?php echo json_encode($value).($nb1 == $j ? '' : ',') ?><?php endforeach ?> }<?php echo $nb == $i ? '' : ',' ?>
<?php endforeach ?>
]